<h1><?php echo $model->nom; ?></h1>
<table id="table_produit_view">
	<tr>
		<td class="image" rowspan=8><img src="<?php echo $model->urlImage ?>" alt="<?php echo $model->nom ?>" height="250px" width="250px"/></td>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('description')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->description); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('id_categorie')); ?>
		<td class="valeur">: <?php echo CHtml::encode($model->categorie->libelle); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('id_type')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->type->libelle); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('poids')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->poids); ?> g</td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('dimension')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->dimension); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('quantite')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->quantite); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($model->getAttributeLabel('prix')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($model->prix); ?> &euro;</td>
	</tr>
	<tr>
		<td class="artiste" colspan=2>Créée par <?php echo Chtml::link(Chtml::encode($model->artiste->client->nom)." ".CHtml::encode($model->artiste->client->prenom), array("/artiste/view","id"=>$model->id_artiste)); ?> </td>
	</tr>
	<tr>
		<td colspan=3>
			<table>
				<tr>
					<td>
						<?php echo Chtml::form(array('/panier/ajouter'))?>
						<?php echo Chtml::hiddenField("idProduit",$model->id)?>
						<?php echo CHtml::submitButton('Ajouter au panier'); ?>
						<?php echo Chtml::endForm()?>
					</td>
					<td>
						<?php echo Chtml::form(array('/produit'))?>
						<?php echo CHtml::submitButton('Retour'); ?>
						<?php echo Chtml::endForm()?>
					</td>
				</tr>
			</table>
		</td>			
	</tr>
</table>


